﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="regapprove.aspx.cs" Inherits="Sys_regapprove" %>
<%@ Register Assembly="AspNetPager" Namespace="Wuqi.Webdiyer" TagPrefix="webdiyer" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
    <title>注册用户审批</title>
     <link rel="stylesheet" type="text/css" href="../js/themes/default/easyui.css"/>
	<link rel="stylesheet" type="text/css" href="../js/themes/icon.css"/>
	<link rel="stylesheet" type="text/css" href="../CSS/Style.css"/>
	<script type="text/javascript" src="../js/jquery-1.4.2.min.js"></script>
	<script type="text/javascript" src="../js/jquery.easyui.min.js"></script> 
</head>
<body>
    <form id="form1" runat="server">
    <div>
     <asp:ScriptManager ID="ScriptManager1" runat="server">
        </asp:ScriptManager>
        <asp:UpdatePanel ID="UpdatePanel1" runat="server">
            <ContentTemplate>
        <table border="0" cellpadding="0" cellspacing="0" width="100%">
            <tr>
                <td colspan="3" >
                    <webdiyer:AspNetPager ID="AspNetPager1" runat="server" AlwaysShow="True" CustomInfoHTML="共<font color=blue><b>%RecordCount%</b></font>条数据 每页：<font color=blue><b>%PageSize%</b></font> 条 共<font color=blue><b>%PageCount%</b></font>页 当前页：<font color=red><b>%CurrentPageIndex%/%PageCount%</b></font>"
                        CustomInfoSectionWidth="50%" FirstPageText="首页" HorizontalAlign="Right" LastPageText="末页"
                        NextPageText="下一页" OnPageChanged="AspNetPager1_PageChanged" PageIndexBoxType="TextBox"
                        PageSize="15" PrevPageText="上一页" ShowCustomInfoSection="Left" ShowPageIndexBox="Always"
                        SubmitButtonText="Go" TextAfterPageIndexBox="页" TextBeforePageIndexBox="转到" Width="100%" CustomInfoTextAlign="Left">
                    </webdiyer:AspNetPager>
                </td>
            </tr>
            <tr>
                <td colspan="3" rowspan="2">
        <asp:GridView ID="GridView1" runat="server" CssClass="gvStyle" AlternatingRowStyle-CssClass="alt" PagerStyle-CssClass="pgr" AutoGenerateColumns="False"  Font-Bold="False" OnRowCommand="GridView1_RowCommand"  width="100%" EmptyDataText="目前无任何注册申请">
            <Columns>
                <asp:BoundField DataField="tid" HeaderText="工号" SortExpression="tid" />
                <asp:BoundField DataField="name" HeaderText="姓名" SortExpression="name" />
                <asp:BoundField DataField="sex" HeaderText="性别" SortExpression="sex" />
                <asp:BoundField DataField="title" HeaderText="职称" SortExpression="title" />
                <asp:BoundField DataField="field" HeaderText="专业" SortExpression="field" />
                <asp:BoundField DataField="depart" HeaderText="所属学院" SortExpression="depart" />
                <asp:BoundField DataField="cellphone" HeaderText="手机" SortExpression="cellphone" />
                <asp:BoundField DataField="regdatetime" HeaderText="注册时间" SortExpression="regdatetime" />
                <asp:BoundField DataField="usertype" HeaderText="申请权限" SortExpression="usertype" />
                <asp:TemplateField HeaderText="审批操作">
                    <ItemTemplate>
                        <asp:ImageButton ID="btnAllow" runat="server" ImageUrl="~/js/themes/icons/ok.png" AlternateText="通过注册申请" CommandArgument='<%# Eval("id") %>' CommandName="Allow" />
                        &nbsp;
                        <asp:ImageButton
                            ID="btnDeny" runat="server" ImageUrl="~/Images/Recycle_Bin.png" AlternateText="删除注册申请" CommandArgument='<%# Eval("id") %>' CommandName="Deny" OnClientClick="return confirm('是否确认拒绝此用户的注册申请?');"/>
                    </ItemTemplate>
                </asp:TemplateField>
            </Columns>
            <PagerStyle CssClass="pgr" />
            <AlternatingRowStyle CssClass="alt" />
        </asp:GridView>
                </td>
            </tr>
            <tr>
            </tr>
        </table>
                </ContentTemplate>
        </asp:UpdatePanel>
    </div>
    </form>
</body>
</html>
